export function goUrl(id, name, url) {
    //如果是绝对路径
    if(url.indexOf("http:") === 0 || url.indexOf("/") === 0){

    } else {
        var base = location.href;
        var lastIdex = base.lastIndexOf("#");
        if(lastIdex > -1){
            base = base.substring(0, lastIdex);
        }
        lastIdex = base.lastIndexOf("/");
        if(lastIdex > -1){
            url = base.substring(0, lastIdex) + "/" + url;
        }
    }
    typeof VApp !== 'undefined' && (
        VApp.go({
            name: id,
            title: name,//"修改",
            url: url//`bpm/workFlow/xml.html?flag=1&&id=${id}`
        })
    );

    top.addNavTab && top.addNavTab(id, name, url)
}